<template>
  <div class="hdj">
    <!--<h1>这是父亲组件</h1>-->
    <!--<home></home>-->
    <!--<router-view></router-view>-->
    <router-link to="/hdj">跳转</router-link>
    <li v-for="v in goods">
          {{v.title}}
    </li>
  </div>
</template>
<script>
  import Home from './home'
    export default {
      name:'hdj',
      components:{Home},
      computed:{
        goods(){
          return this.$store.state.news.news
        }
      }

    }

</script>
<style scoped="">
    h1{
      background: yellow;
      color: aqua;
    }

</style>
